<?php
	//初始化程序
	header("content-type:Text/html;charset=utf-8");
	session_start();
	//跳转函数
	function msg($msg,$url){
		echo "<script>
			alert('$msg');
			location.href='$url';
		</script>";
	}
	//商品数据(编号、名称、价格、产地、图片、库存)
	$products = array(
		array("id"=>1,"name"=>"猛攻鱼竿 钓鱼竿 鱼竿手竿 鱼竿特价台钓竿 超轻超硬纯碳素台钓竿28调鱼杆套装 5.4+4.5米换把+礼包","price"=>228.00,"addr"=>"北京 朝阳","img"=>"1.jpg","store"=>100),
		array("id"=>2,"name"=>"民间艺人垂钓用品-巴尔杉鱼漂套装组合 多款精美浮漂+木质桐木漂盒套餐 立式浮标套餐渔具 套餐一 桐木漂盒","price"=>128.00,"addr"=>"江苏 南京","img"=>"2.jpg","store"=>150),
		array("id"=>3,"name"=>"正品刀郎特价芦苇巴尔杉浮漂鲫鱼鲤鱼草鱼野钓鱼漂组合彩金版加粗尾醒目尾正品漂 芦苇A158 一盒123各一支","price"=>50.00,"addr"=>"上海 金山","img"=>"3.jpg","store"=>0),
		array("id"=>4,"name"=>"猛攻钓鱼椅新款座椅钓鱼专用多功能折叠垂钓椅钓台钓凳台钓椅铝合金椅套装 钓鱼椅 钓鱼伞006 1代钓鱼椅+2米双层钓伞","price"=>348.00,"addr"=>"山东 威海","img"=>"4.jpg","store"=>120),
		array("id"=>5,"name"=>"渔之源 鱼钩套装太空豆漂座铅皮座八字环绑钩器竿止剪刀钓鱼渔具配件套装 金袖有刺 豪华版","price"=>28.00,"addr"=>"河南 洛阳","img"=>"5.jpg","store"=>780),
		array("id"=>6,"name"=>"佳钓尼2米双层开口 钓鱼伞 遮阳伞 垂钓伞 万向转环 渔具垂钓用品 钓鱼雨伞 钓伞防晒","price"=>109.00,"addr"=>"浙江 金华","img"=>"6.jpg","store"=>141),
		array("id"=>7,"name"=>"佳钓尼1.25米不锈钢支架包 渔具包 台钓包 渔具垂钓用品 钓鱼包 路亚包 鱼竿包 1.25米水晶三层免安装支架包送礼包","price"=>159.00,"addr"=>"浙江 温州","img"=>"7.jpg","store"=>246),
		array("id"=>8,"name"=>"三友钓鱼灯头灯强光捕鱼灯夜钓灯超亮充电远射头顶灯矿工灯照明矿灯led渔具用品垂钓 506A头灯","price"=>98.00,"addr"=>"安徽 合肥","img"=>"8.jpg","store"=>526),
	);

?>